package com.itheima.service;

import java.sql.SQLException;
import java.util.List;

import com.itheima.bean.Product;
import com.itheima.dao.ProductDao;

public class ProductService {

	public List<Product> findAllProducts() throws SQLException {
		//创建ProductDao
		ProductDao pd = new ProductDao();
		//调用查询所有商品的方法
		return pd.findAllProducts();
	}

}
